package Service;

/*
Service层接口
 */


import DAO.Book.Books;

import java.sql.SQLException;
import java.util.ArrayList;

public interface BooksService {
    //查询所有商品信息
    public abstract ArrayList<Books> findAll() throws SQLException, ClassNotFoundException;

    //条件查询，根据goodsNum获取商品信息
    public abstract Books findByGoodsNum(String goodsNum);

    //新增商品信息
    public abstract int insert(Books gds);

    //修改商品信息
    public abstract int updata(Books gds);

    //删除商品信息
    public abstract int delete(String goodsNum);
}
